package com.sls.game.assist;

import com.sls.game.pojo.GoodsOrderInfo;
import com.sls.game.pojo.GoodsOrderLog;

/**
 * 辅助类
 * 
 * @author cx
 * 
 */
public class Helper {

	/**
	 * 属性复制
	 * 
	 * @param order
	 * @return
	 */
	public static GoodsOrderLog copy(GoodsOrderInfo order) {
		GoodsOrderLog orderLog = new GoodsOrderLog();
		if (order != null) {
			orderLog.setOrderId(order.getOrderId());
			orderLog.setGoodsId(order.getGoodsId());
			orderLog.setGoodsName(order.getGoodsName());
			orderLog.setBrandId(order.getBrandId());
			orderLog.setBrandName(order.getBrandName());
			orderLog.setCreateOrderTime(order.getCreateOrderTime());
			orderLog.setSlsPlatformIP(order.getSlsPlatformIP());
			orderLog.setGameAccount(order.getGameAccount());
			orderLog.setMerchantOrderId(order.getMerchantOrderId());
			orderLog.setContractId(order.getContractId());
			orderLog.setNotifyUrl(order.getNotifyUrl());
			orderLog.setMerchantIP(order.getMerchantIP());
			orderLog.setGoodsValue(order.getGoodsValue());
			orderLog.setGoodsCostPrice(order.getGoodsCostPrice());
			orderLog.setGoodsSalePrice(order.getGoodsSalePrice());
			orderLog.setBuyNum(order.getBuyNum());
			orderLog.setTotalPrice(order.getTotalPrice());
			orderLog.setAreaServer(order.getAreaServer());
			orderLog.setStatus(order.getStatus());
			orderLog.setStatusRemark(order.getStatusRemark());
			orderLog.setResult(order.getResult());
			orderLog.setCardsInformation(order.getCardsInformation());
			orderLog.setCardNoPwd(order.getCardNoPwd());
			orderLog.setCardRemark(order.getCardRemark());
			orderLog.setUserType(order.getUserType());
			orderLog.setCommission(order.getCommission());
			orderLog.setRegisterAccount(order.getRegisterAccount());
			orderLog.setOperator(order.getOperator());
			orderLog.setIsPay(order.getIsPay());
			orderLog.setPayTime(order.getPayTime());
			orderLog.setPaymentOrderNo(order.getPaymentOrderNo());
			orderLog.setSupplyId(order.getSupplyId());
			orderLog.setSupplyName(order.getSupplyName());
			orderLog.setSupOrderId(order.getSupOrderId());
			orderLog.setSupOrderSuccessTime(order.getSupOrderSuccessTime());
			orderLog.setReType(order.getReType());
			orderLog.setRePrice(order.getRePrice());
			orderLog.setReNum(order.getReNum());
			orderLog.setIsDelete(order.getIsDelete());
			orderLog.setSynOrAsy(order.getSynOrAsy());
			orderLog.setUserhandleResult(order.getUserhandleResult());
			orderLog.setRemark(order.getRemark());
		}

		return orderLog;
	}
}
